#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
void* my_memcpy(void* str1, void* str2, int n)
{
	void* ret = str2;
	while (n--)
	{
		*(char*)str2 = *(char*)str1;
		str2 = (char*)str2 + 1;
		str1 = (char*)str1 + 1;
	}
	return 0;
}
int main()
{
	int arr1[] = { 1,2,3,4,5,6,7,8,9,10 };
	int arr2[10] = { 0 };
	my_memcpy(arr1, arr2, 10);
	for (int i = 0; i < 10; i++)
	{
		printf("%d ", arr2[i]);
	}
	return 0;
}